package com.djhu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

import com.rule.MySelfRule;

@SpringBootApplication
@EnableEurekaClient // 客户端启动
//自定义Ribbon 负载均衡配置,MySelfRule.java 不能在 @ComponentScan 扫描的包以及子包下，否则不会生效。
@RibbonClient(name="SPRINGCLOUD-PROVIDER",configuration=MySelfRule.class) 
public class ConsumerStart {
	
	public static void main(String[] args) {
		SpringApplication.run(ConsumerStart.class);
	}

}
